package org.dromara.web.controller.business.req;


import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

public class UserReq {


    @Data
    public static class UserAddReq {

        private String username;

        private String password;

        private String authLevel;

        private Boolean status;

        private Boolean tradeStatus;

        private Boolean platform;

        private String remark;

        private Long invitorId;
    }

    @Schema(description = "注册接口请求参数")
    @Data
    public static class RegisterReq {

        @NotEmpty(message = "type can not be null")
        @Schema(description = "账号")
        private String account;
        @NotEmpty(message = "type can not be null")
        @Schema(description = "密码")
        private String password;
        @Schema(description = "邀请码")
        private String inviteCode;
//        private String code;
    }


    @Schema(description = "注册接口请求参数")
    @Data
    public static class DeviceRegisterReq {


        @Schema(description = "邀请码")
        private String deviceId;
    }


    @Data
    public static class AgentReq {
        @NotNull(message = "type can not be null")
        private Long userId;
        @NotNull(message = "username can not be null")
        private String username;
        @NotEmpty(message = "password can not be null")
        private String password;
        @NotEmpty(message = "agentName can not be null")
        private String name;
    }


    @Data
    public static class UserBalanceUpdateReq {
        @NotNull
        private Long userId;

        private Integer diamond;

        private Integer star;
    }
}
